package com.wuchao.interfaces;

/**
 * 作者：吴超
 * 邮箱：wuchao_19931120@163.com
 * 时间：2021-11-13
 * 描述：
 */

public abstract class absEmployee {

    private String name;
    private String address;
    private int number;

    public absEmployee(String name, String address, int number) {
        System.out.println("constructing on abstract class.");
        this.name = name;
        this.address = address;
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "absEmployee{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", number=" + number +
                '}';
    }

    public double computePay(){
        System.out.println("Employee computePay.");
        return 0.0;
    }

    public abstract void showSalary();

    public void mailCheck(){
        System.out.println("Mailing a check to " + this.name + " " + this.address);
    }

}
